package com.itheima.service;

import com.itheima.entity.PageResult;
import com.itheima.entity.QueryPageBean;
import com.itheima.entity.SmallPageBean;
import com.itheima.pojo.User;

import java.util.List;

public interface UserService {

    void add(User user, Integer[] roleIds);

    User findByUsername(String username);

    List<User> findAll();

    PageResult findAll(SmallPageBean smallPageBean);

    PageResult pageQuery(QueryPageBean queryPageBean);
}
